projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcfa1d2
)
(random, srandom): Declare explicitly.
author
Dave Love
<fx@gnu.org>
Thu, 4 Jan 2001 17:47:01 +0000
(17:47 +0000)
committer
Dave Love
<fx@gnu.org>
Thu, 4 Jan 2001 17:47:01 +0000
(17:47 +0000)
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index 65cb02156b07e24c047d31ae13c315f34c0a2d28..8d8289dbb99471bacba8a0ddbb22da69174e8d01 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-26,8
+26,14
@@
Boston, MA 02111-1307, USA. */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-
#include "lisp.h"
+/* Including stdlib.h isn't necessarily enough to get srandom
+ declared, e.g. without __USE_XOPEN_EXTENDED with glibc 2. */
+#ifdef HAVE_RANDOM
+extern long int random P_ ((void));
+extern void srandom P_ ((unsigned int));
+#endif
+
#include "blockinput.h"
#undef NULL